package com.telecom.weixi.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.telecom.weixi.R;

public class BlockRowView extends LinearLayout {
	TextView tx1, tx2;
	
	public BlockRowView(Context context) {
		this(context, null);
	}
	
	public BlockRowView(Context context, AttributeSet attrs) {
		super(context, attrs);
		
		setupView(context);
	}

	void setupView(Context context){
		LayoutInflater flater = LayoutInflater.from(context);
		flater.inflate(R.layout.block_row, this);
		tx1 = (TextView) findViewById(R.id.content1);
		tx2 = (TextView) findViewById(R.id.content2);
	}
	
	public View initContent(String content1, String content2){
		tx1.setText(content1);
		tx2.setText(content2);
		return this;
	}
	

}
